package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.GenghuanKJ;

public interface GenghuanKJRepository extends JpaRepository<GenghuanKJ, Long> {

    GenghuanKJ findByTaskId(String taskId);

    GenghuanKJ findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<GenghuanKJ> findByWorkOrderNum(String workOrderNum);

    List<GenghuanKJ> findAllByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);

    GenghuanKJ findTopByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
